

package com.dog.basics.admin.controller.wishwash.api;

import com.dog.basics.common.annotation.ApiLog4j;
import com.dog.basics.common.util.R;
import com.dog.basics.bean.dto.api.wishwash.ApiDogHxFieldPriceFromDto;
import com.dog.basics.bean.vo.api.wishwash.ApiDogHxFieldPriceVo;
import com.dog.basics.security.annotation.Inner;
import com.dog.basics.service.wishwash.DogHxFieldPriceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
/**
 * 场地价格设置
 *
 * @author cy code generator
 * @date 2021-07-09 17:40:27
 */
@RestController
@AllArgsConstructor
@RequestMapping("/api/hxfieldprice")
@Api(value = "场地价格设置管理", tags = "API:场地价格设置管理")
public class ApiDogHxFieldPriceController {

    private final DogHxFieldPriceService dogHxFieldPriceService;

    /**
     * 获取不同设备的价格
     *
     * @param obj 场地价格设置
     * @return
     * @author cy code generator
     * @date 2021-07-09 17:40:27
     */
    @ApiLog4j
    @Inner
    @ApiOperation(value = "获取不同设备的价格", notes = "通过设备类型条件获取不同设备的运行价格")
    @GetMapping
    public R<ApiDogHxFieldPriceVo> getApiHxFieldPrice(ApiDogHxFieldPriceFromDto obj) {
        return R.ok(dogHxFieldPriceService.getApiFildPriceVo(obj));
    }


}
